package com.cr.manager.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.cr.common.annotation.Excel;
import com.cr.common.core.domain.BaseEntity;

/**
 * 车辆管理对象 cr_car
 * 
 * @author lms
 * @date 2024-08-07
 */
@Data
public class Car extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @Excel(name = "车辆ID", cellType = Excel.ColumnType.NUMERIC)

    private Integer id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Integer userId;

    /** 品牌 */
    @Excel(name = "品牌")
    private String brand;

    /** 颜色 */
    @Excel(name = "颜色")
    private String color;

    /** 座位数 */
    @Excel(name = "座位数")
    private String seatingCapacity;

    /** 价格 */
    @Excel(name = "价格")
    private String price;

    /** 年份 */
    @Excel(name = "年份")
    private String year;

    /** 详情介绍 */
    @Excel(name = "详情介绍")
    private String detail;

    /** 图片 */
    @Excel(name = "图片")
    private String image;

    /** 空闲时间开始 */
    @Excel(name = "空闲时间开始")
    private String rentalEnd;

    /** 空闲时间结束 */
    @Excel(name = "空闲时间结束")
    private String rentalStart;

    /** 当前状态 */
    @Excel(name = "当前状态")
    private String status;

    /** 是否出租 */
    @Excel(name = "是否出租")
    private String isRent;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("brand", getBrand())
            .append("seatingCapacity", getSeatingCapacity())
            .append("price", getPrice())
            .append("year", getYear())
            .append("detail", getDetail())
            .append("color", getColor())
            .append("image", getImage())
            .append("rentalEnd", getRentalEnd())
            .append("rentalStart", getRentalStart())
            .append("status", getStatus())
            .append("isRent", getIsRent())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
